package org.example.pojo;

/**
 * @Author: HAPPY
 * @Project_name: hibernate
 * @Package_name: org.example.pojo
 * @Date: 2021/10/11 19:23
 * explain:
 */
public class Student {
    private String id;
    private String name;
    private String sex;
    private Integer age;
    private Classes classes;

    public Student(){

    }

    public Student(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Student(String name, String sex, Integer age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Classes getClasses() {
        return classes;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }
}
